<template>
    <div class="viewCont">
        <slot name="img"></slot>
        <slot name="news" class="viewinfo"></slot>
    </div>
</template>

<script>
export default {
    name: 'ViewInfo',
}
</script>

<style scoped>
 .viewCont {
     display: flex;
 }
 .img{
     width: 40px;
     margin: 10px;
 }
 .viewinfo{
     flex: 1;
     border-bottom: 1px solid red;
     line-height: 20px;
 }
</style>
